Fix some warnings
[adiumx.git] / Plugins / Gaim Service / ESMeanwhileService.m
blob4ea09d9bab76b3500fa6d5fe4cc585895b7cf708
1 /* 
2  * Adium is the legal property of its developers, whose names are listed in the copyright file included
3  * with this source distribution.
4  * 
5  * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6  * General Public License as published by the Free Software Foundation; either version 2 of the License,
7  * or (at your option) any later version.
8  * 
9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
11  * Public License for more details.
12  * 
13  * You should have received a copy of the GNU General Public License along with this program; if not,
14  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15  */
17 #import <Adium/AIStatusControllerProtocol.h>
18 #import "DCGaimMeanwhileJoinChatViewController.h"
19 #import "ESGaimMeanwhileAccount.h"
20 #import "ESGaimMeanwhileAccountViewController.h"
21 #import "ESMeanwhileService.h"
22 #import <AIUtilities/AICharacterSetAdditions.h>
24 @implementation ESMeanwhileService
26 //Account Creation
27 - (Class)accountClass{
28         return [ESGaimMeanwhileAccount class];
31 - (AIAccountViewController *)accountViewController{
32     return [ESGaimMeanwhileAccountViewController accountViewController];
35 - (DCJoinChatViewController *)joinChatView{
36         return [DCGaimMeanwhileJoinChatViewController joinChatView];
39 //Service Description
40 - (NSString *)serviceCodeUniqueID{
41         return @"libgaim-Sametime";
43 - (NSString *)serviceID{
44         return @"Sametime";
46 - (NSString *)serviceClass{
47         return @"Sametime";
49 - (NSString *)shortDescription{
50         return @"Sametime";
52 - (NSString *)longDescription{
53         return @"Lotus Sametime";
55 - (NSCharacterSet *)allowedCharacters{
56         NSMutableCharacterSet   *allowedCharacters = [[NSCharacterSet alphanumericCharacterSet] mutableCopy];
57         NSCharacterSet                  *returnSet;
59         [allowedCharacters formUnionWithCharacterSet:[NSCharacterSet punctuationCharacterSet]];
60         [allowedCharacters formUnionWithCharacterSet:[NSCharacterSet symbolCharacterSet]];
61         [allowedCharacters addCharactersInString:@" "];
63         returnSet = [allowedCharacters immutableCopy];
64         [allowedCharacters release];
65         
66         return [returnSet autorelease];
68 - (NSCharacterSet *)ignoredCharacters{
69         return [NSCharacterSet characterSetWithCharactersInString:@""];
71 - (int)allowedLength{
72         return 1000;
74 - (BOOL)caseSensitive{
75         return YES;
77 - (AIServiceImportance)serviceImportance{
78         return AIServiceSecondary;
80 - (BOOL)canCreateGroupChats{
81         return YES;
83 - (void)registerStatuses{
84         //"available"
85         [[adium statusController] registerStatus:STATUS_NAME_AVAILABLE
86                                                          withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AVAILABLE]
87                                                                           ofType:AIAvailableStatusType
88                                                                   forService:self];
90         //"away"
91         [[adium statusController] registerStatus:STATUS_NAME_AWAY
92                                                          withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AWAY]
93                                                                           ofType:AIAwayStatusType
94                                                                   forService:self];
95         
96         //"busy"
97         [[adium statusController] registerStatus:STATUS_NAME_DND
98                                                          withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_DND]
99                                                                           ofType:AIAwayStatusType
100                                                                   forService:self];
101         
102         /*
103          m = g_list_append(m, _("Active"));
104          m = g_list_append(m, _("Away"));
105          m = g_list_append(m, _("Do Not Disturb"));
106          */ 
108 @end